package com.smart.manager.member.entities.bodys;

import com.smart.common.entities.core.BaseSearch;
import com.smart.manager.member.entities.enums.SaleStatus;
import com.smart.manager.member.entities.views.MemberPigView;
import com.smart.manager.member.entities.views.MemberView;
import com.smart.manager.product.entities.enums.PigStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * @author leo
 * @date 2023/09/22
 */
public class RMemberPigSale {
    @EqualsAndHashCode(callSuper = true)
    @Data
    @ApiModel("RMemberMaterialPig1")
    public static class SearchBody extends BaseSearch {

        @ApiModelProperty(value = "卖家ID")
        private MemberView sellerId;

        @ApiModelProperty(value = "买家ID")
        private MemberView buyerId;

        @ApiModelProperty(value = "猪ID")
        private MemberPigView pigId;

        @ApiModelProperty(value = "售价")
        private BigDecimal price;

        @ApiModelProperty(value = "挂售时间")
        private LocalDateTime listingTime;

        @ApiModelProperty(value = "购买时间")
        private LocalDateTime purchaseTime;

        @ApiModelProperty(value = "售卖状态")
        private SaleStatus status;
    }

}
